/*

Author   : chaos

FileName : typeid2.cpp

Date     : 15/08/17 22:35:03

*/
#include <iostream>
#include <typeinfo>
using namespace std;

template<class TYPE>
void Max(TYPE a , TYPE b)
{
    cout << "data type :";
    cout << typeid(TYPE).name();
    cout << endl;
}
int main(int argc ,char *argv[])
{

    int a = 2, b = 3;
    char c = 'A', d = 'B';

    Max(a,b);
    Max(c,d);
    return 0;
}
